package com.qinggeng.project.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.qinggeng.framework.aspectj.lang.annotation.Excel;
import lombok.Data;
import com.qinggeng.framework.web.domain.BaseEntity;

/**
 * 职位名称对象 position_name
 * 
 * @author smallfish
 * @date 2020-12-27
 */
@Data
public class PositionName extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 职位名称 */
    @Excel(name = "职位名称")
    private String name;

    /** 职位编码 */
    @Excel(name = "职位编码")
    private String code;

    /** 首字母 */
    @Excel(name = "首字母")
    private String firstChar;

    /** 全拼 */
    @Excel(name = "全拼")
    private String pinyin;

    /** 名称级别 */
    @Excel(name = "名称级别")
    private Integer rank;

    /** 父级ID */
    @Excel(name = "父级ID")
    private Long parentId;

    /** 是否父类 */
    @Excel(name = "是否父类")
    private Integer isParent;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("code", getCode())
            .append("firstChar", getFirstChar())
            .append("pinyin", getPinyin())
            .append("rank", getRank())
            .append("parentId", getParentId())
            .append("isParent", getIsParent())
            .toString();
    }
}
